<?php
/**
 * Created by PhpStorm.
 * User: Leng
 * Date: 2017/8/1
 * Time: 0:52
 */

namespace Core;

class PublicCore
{
    static function error($messages,$redirect_url = false){
        if ($redirect_url){
            header('Location:'.$redirect_url);
        }
        throw new \Exception($messages);
    }

    static function success($messages,$redirect_url,$show_time){

    }
}